package com.joolun.tennis.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.joolun.common.annotation.Excel;
import com.joolun.common.annotation.Excel.ColumnType;
import com.joolun.common.core.domain.BaseEntity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 专题对象 activity
 * 
 * @author www.joolun.com
 * @date 2022-02-24
 */
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 活动主题 */
    @Excel(name = "活动主题")
    private String topic;

    /** 活动内容，富文本格式 */
    @Excel(name = "活动内容，富文本格式")
    private String content;

    /** 发起人 */
    @Excel(name = "发起人")
    private Long publisher;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 活动人均费用 */
    @Excel(name = "活动人均费用")
    private BigDecimal fee;

    /** 活动人数 */
    @Excel(name = "活动人数")
    private Long peopleNums;

    /** 活动所属城市 */
    @Excel(name = "活动所属城市")
    private Long city;

    /** 活动图片 */
    @Excel(name = "活动图片")
    private String picUrl;

    /** 活动地址 */
    @Excel(name = "活动地址")
    private String address;

    /** 活动经度 */
    @Excel(name = "活动经度")
    private BigDecimal lontitude;

    /** 活动纬度 */
    @Excel(name = "活动纬度")
    private BigDecimal latitude;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 退款说明 */
    @Excel(name = "退款说明")
    private String feeIntro;

    /** 活动状态（未发布，已发布、进行中、已结束、已取消） */
    @Excel(name = "活动状态", readConverterExp = "未=发布，已发布、进行中、已结束、已取消")
    private Integer status;

    /** 参与总人数 */
    @Excel(name = "参与总人数")
    private Integer joinNums;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Integer deleted;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTopic(String topic) 
    {
        this.topic = topic;
    }

    public String getTopic() 
    {
        return topic;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPublisher(Long publisher) 
    {
        this.publisher = publisher;
    }

    public Long getPublisher() 
    {
        return publisher;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setFee(BigDecimal fee) 
    {
        this.fee = fee;
    }

    public BigDecimal getFee() 
    {
        return fee;
    }
    public void setPeopleNums(Long peopleNums) 
    {
        this.peopleNums = peopleNums;
    }

    public Long getPeopleNums() 
    {
        return peopleNums;
    }
    public void setCity(Long city) 
    {
        this.city = city;
    }

    public Long getCity() 
    {
        return city;
    }
    public void setPicUrl(String picUrl) 
    {
        this.picUrl = picUrl;
    }

    public String getPicUrl() 
    {
        return picUrl;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setLontitude(BigDecimal lontitude) 
    {
        this.lontitude = lontitude;
    }

    public BigDecimal getLontitude() 
    {
        return lontitude;
    }
    public void setLatitude(BigDecimal latitude) 
    {
        this.latitude = latitude;
    }

    public BigDecimal getLatitude() 
    {
        return latitude;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setFeeIntro(String feeIntro) 
    {
        this.feeIntro = feeIntro;
    }

    public String getFeeIntro() 
    {
        return feeIntro;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setJoinNums(Integer joinNums) 
    {
        this.joinNums = joinNums;
    }

    public Integer getJoinNums() 
    {
        return joinNums;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("topic", getTopic())
            .append("content", getContent())
            .append("publisher", getPublisher())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("fee", getFee())
            .append("peopleNums", getPeopleNums())
            .append("city", getCity())
            .append("picUrl", getPicUrl())
            .append("address", getAddress())
            .append("lontitude", getLontitude())
            .append("latitude", getLatitude())
            .append("phone", getPhone())
            .append("feeIntro", getFeeIntro())
            .append("status", getStatus())
            .append("joinNums", getJoinNums())
            .append("deleted", getDeleted())
            .append("addTime", getAddTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
